let app = new Vue({
	el:"#main-content",
	data:{
		maintainList : "",
	},
	created() {
		this.getList();
		
	},
	methods:{
		   getQueryString(name) {
		        return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null
		    },
		getList(){
			let data = new URLSearchParams;
			data.append("id",this.getQueryString("id"));
			console.log(this.getQueryString("id"));
			axios({
				method : "post",
				url : "xiuli/maintainById",
				data : data,
				headers:{"token":localStorage.token,"url":window.location.pathname}
			}).then(response=>{
				console.log(response.data.data);
				this.maintainList=response.data.data;
			})
		}
		
	}
})